function [ conn1, conn2 ] = cross_connections( pconn1, pconn2, pattern )
%UNTITLED2 Summary of this function goes here
%   Detailed explanation goes here
conn1 = pconn1.*pattern + pconn2.*(~pattern);
conn2 = pconn1.*(~pattern) + pconn2.*pattern;

end

